import React, { Component } from 'react';
import { render } from 'react-dom';
import { configure as mobxConfigure } from 'mobx';
import { Provider } from 'mobx-react';
import { ConfigProvider } from 'antd';
import moment from 'moment';
import 'moment/locale/zh-cn';
import zhCN from 'antd/lib/locale-provider/zh_CN';


import '@assets/normalize.css';
import '@assets/style.scss';
import Index from '@pages/Index';
import stores from '@stores';

import * as serviceWorker from './registerServiceWorker';

mobxConfigure({
    enforceActions: "observed"
});
moment.locale('zh-cn');
class App extends Component {

    render() {
        return (
            <Provider {...stores}>
                <Index />
            </Provider>
        );
    }
}


render(<ConfigProvider locale={zhCN}><App /></ConfigProvider>, document.getElementById('root'));

// serviceWorker.register();
serviceWorker.unregister();


